import { createRouter, createWebHistory } from "vue-router";

const routes = [

  {
    path: '/',
    redirect: '/3D-Generator'
  },

  {
    path: '/3D-Generator',
    component: () => import('@/views/user-page/index.vue'),
    redirect: '/studio',
    children: [
      {
        path: '/studio',
        component: () => import('@/views/user-page/StudioLayout.vue')
      }
    ]
  },
  {
    path: '/3d_model_report/:id',
    name: '3DModelReport',
    component: () => import('@/views/user-page/ModelReport.vue')
  },
  {
    path: '/home',
    component: () => import('@/views/Home.vue')
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
